﻿CREATE PROCEDURE [dbo].[usp_QueueEmail]
	@Subject varchar(255),
	@From varchar(255),
	@To varchar(255),
	@Priority tinyint,
	@Body text
AS

INSERT INTO dbo.EmailQueue ([Subject], [From], [To], [Priority], [Body])
VALUES (@Subject, @From, @To, @Priority, @Body)